﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="SilverlightApplication.BookAdvancedPanel"
	d:DesignWidth="500" d:DesignHeight="164">
	<UserControl.Resources>
		<LinearGradientBrush x:Key="bshBlue" EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FF1222CF"/>
			<GradientStop Color="#FF03142A" Offset="1"/>
			<GradientStop Color="#FF0A1361" Offset="0.509"/>
		</LinearGradientBrush>
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot" Width="500" Height="140">
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="Auto"/>
			<ColumnDefinition Width="*"/>
			<ColumnDefinition Width="Auto"/>
			<ColumnDefinition Width="*"/>
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition Height="*"/>
			<RowDefinition Height="*"/>
			<RowDefinition Height="*"/>
			<RowDefinition Height="*"/>
		</Grid.RowDefinitions>
		<TextBlock x:Name="asTitle" Margin="5" Foreground="{StaticResource bshBlue}" Text="Title:" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="0" Grid.Row="0"/>
		<TextBox x:Name="txbAdvBookTitle" Margin="5" Height="24" Background="{StaticResource bshFields}" KeyUp="KeyPress" Grid.Column="1" Grid.Row="0"/>
		<TextBlock x:Name="asAuthor" Margin="5" Foreground="{StaticResource bshBlue}" Text="Author:" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="0" Grid.Row="1"/>
		<TextBox x:Name="txbAdvBookAuthor" Margin="5" Height="24" Background="{StaticResource bshFields}" KeyUp="KeyPress" Grid.Column="1" Grid.Row="1"/>
		<TextBlock x:Name="asPublisher" Margin="5" Foreground="{StaticResource bshBlue}" Text="Publisher:" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="0" Grid.Row="2"/>
		<TextBox x:Name="txbAdvBookPublisher" Margin="5" Height="24" Background="{StaticResource bshFields}" KeyUp="KeyPress" Grid.Column="1" Grid.Row="2"/>
		<TextBlock x:Name="asKeywords" Margin="5" Foreground="{StaticResource bshBlue}" Text="Keywords:" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="0" Grid.Row="3"/>
		<TextBox x:Name="txbAdvBookKeywords" Margin="5" Height="24" Background="{StaticResource bshFields}" KeyUp="KeyPress" Grid.Column="1" Grid.Row="3"/>

		<TextBlock x:Name="asOrderBy" Margin="5" Foreground="{StaticResource bshBlue}" Text="Order by:" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="2" Grid.Row="0"/>
        <ComboBox x:Name="cboxAdvBookOrderBy" Margin="5" Height="24" Background="{StaticResource bshAdvPanel}" Grid.Row="0" Grid.Column="3">
            <ComboBoxItem Content="&lt;&lt; Select &gt;&gt;" IsSelected="True" x:Name="emptycmb"/>
            <ComboBoxItem Content="Price" x:Name="cbItBookPrice"/>
            <ComboBoxItem Content="Title" x:Name="cbItBookTitle"/>
        </ComboBox>

        <RadioButton Margin="15,5,5,2" x:Name="rbBookUpward" Content="Ascending" IsChecked="True" Grid.Row="1" Grid.Column="3" VerticalAlignment="Center" Foreground="{StaticResource bshBlue}" HorizontalAlignment="Left"/>
		<RadioButton Margin="15,2,5,5" x:Name="rbBookDownward" Content="Descending" Grid.Row="2" Grid.Column="3" VerticalAlignment="Center" Foreground="{StaticResource bshBlue}" HorizontalAlignment="Left"/>

		<TextBlock x:Name="asPrice" Margin="5" Text="Price:" Foreground="{StaticResource bshBlue}" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="3" Grid.Column="2"/>
        <ComboBox x:Name="cboxPrice" Margin="5" Grid.Column="3" Grid.Row="6" Height="24" Background="{StaticResource bshAdvPanel}">
            <ComboBoxItem Content="&lt;&lt; Select &gt;&gt;" IsSelected="True" x:Name="emptycmb1" />
            <ComboBoxItem Content="Up to U$S 10" x:Name="cboxItemUp10"/>
            <ComboBoxItem Content="From U$S 10 to 50" x:Name="cboxItemFrom10to50"/>
            <ComboBoxItem Content="More than U$S 50" x:Name="cboxItemMorethan50"/>
        </ComboBox>
        
    </Grid>
</UserControl>